package com.heima.api.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "leadnews-wemedia")
public interface IAdminClient {

    @PostMapping("/api/v1/sensitive/list")
    PageResponseResult list(@RequestBody String dto);

    @PostMapping("/api/v1/sensitive/del")
    ResponseResult deleteById(@RequestBody Integer id);

    @PostMapping("/api/v1/sensitive/save")
    ResponseResult save(@RequestBody WmSensitive wmSensitive);

    @PostMapping("/api/v1/sensitive/update")
    ResponseResult update(@RequestBody WmSensitive wmSensitive);

    @PostMapping("/api/v1/channel/saveChannel")
    ResponseResult addChannel(@RequestBody WmChannel wmChannel);

    @GetMapping("/api/v1/channel/deleteChannel/{id}")
    ResponseResult delChannel(@PathVariable Integer id);

    @PostMapping("/api/v1/channel/updateChannel")
    ResponseResult updateChannel(@RequestBody WmChannel wmChannel);

    @PostMapping("/api/v1/channel/ChannelList")
    PageResponseResult findChannelList(@RequestBody ChannelDto channelDto);

    @PostMapping("/api/v1/channel/queryById/{id}")
    WmChannel queryById(@PathVariable Integer id);

    @PostMapping("/findList")
    PageResponseResult findList(@RequestBody  String  str);

    @PostMapping("/findOne")
    ResponseResult findOne(@RequestBody Integer  id);

    @PostMapping("/isPass")
    ResponseResult isPass(@RequestBody String  id);
}
